Insert the following macros to set the pages you want to use. The pages will appear
in the order in which you insert them in the script. You can also insert custom
Page commands between the macros to add custom pages.
You can add multiple pages of certain types (for example, if you want the user to
specify multiple folders).
You will need the page ID for the Start Menu folder page when using the Start Menu
folder macros. The folder will be stored in the specified variable.
Page settings apply to a single page and should be set before inserting a page macro.
The same settings can be used for installer and uninstaller pages. You have to repeat
the setting if you want it to apply to multiple pages. Example:
;Add a directory page to let the user specify a plug-ins folder
;Store the folder in $PluginsFolder
Var PLUGINS_FOLDER
!define MUI_DIRECTORYPAGE_VARIABLE $PluginsFolder
!insertmacro MUI_PAGE_DIRECTORY
All standard texts in the user interface are loaded from language files, which are
available for all languages supported by NSIS. So you only need to define these
texts if you want to change the default.
If the parameter is a text that should be different for each language, define a
language string using LangString and use $(LangStringName) as value. For a license
text in multiple languages, LicenseLangString can be used. Refer the NSIS Users
Manual for more information about installers with multiple languages.
In all text settings, the doublequote character (") should be escaped in the
following form: $\"
General page settings
MUI_PAGE_HEADER_TEXT text
Text to display on the header of the page.
MUI_PAGE_HEADER_SUBTEXT text
Subtext to display on the header of the page.
Welcome page settings
MUI_WELCOMEPAGE_TITLE title
Title to display on the top of the page.
MUI_WELCOMEPAGE_TITLE_3LINES
Extra space for the title area.
MUI_WELCOMEPAGE_TEXT text
Text to display on the page.
License page settings
MUI_LICENSEPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_LICENSEPAGE_TEXT_BOTTOM text
Text to display on the bottom of the page.
MUI_LICENSEPAGE_BUTTON button_text
Text to display on the 'I Agree' button.
MUI_LICENSEPAGE_CHECKBOX
Display a checkbox the user has to check to agree with the license terms.
MUI_LICENSEPAGE_CHECKBOX_TEXT text
Text to display next to the checkbox to agree with the license terms.
MUI_LICENSEPAGE_RADIOBUTTONS
Display two radio buttons to allow the user to choose between accepting the license
terms or not.
MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_ACCEPT text
Text to display next to the checkbox to accept the license terms.
MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_DECLINE text
Text to display next to the checkbox to decline the license terms.
Components page settings
MUI_COMPONENTSPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_COMPONENTSPAGE_TEXT_COMPLIST text
Text to display on next to the components list.
MUI_COMPONENTSPAGE_TEXT_INSTTYPE text
Text to display on next to the installation type combo box.
MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE text
Text to display on the of the top of the description box.
MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO text
Text to display inside the description box when no section is selected.
Directory page settings
MUI_DIRECTORYPAGE_TEXT_TOP text
Text to display on top of the page.
MUI_DIRECTORYPAGE_TEXT_DESTINATION text
Text to display on the destination folder frame.
MUI_DIRECTORYPAGE_VARIABLE variable
Variable in which to store the selected folder.
Default: $INSTDIR
MUI_DIRECTORYPAGE_VERIFYONLEAVE
Does not disable the Next button when a folder is invalid but allows you to use
GetInstDirError in the leave function to handle an invalid folder.
Start Menu folder page settings
MUI_STARTMENUPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_STARTMENUPAGE_TEXT_CHECKBOX text
Text to display next to the checkbox to disable the Start Menu folder creation.
MUI_STARTMENUPAGE_DEFAULTFOLDER folder
The default Start Menu Folder.
MUI_STARTMENUPAGE_NODISABLE
Do not display the checkbox to disable the creation of Start Menu shortcuts.
MUI_STARTMENUPAGE_REGISTRY_ROOT root
MUI_STARTMENUPAGE_REGISTRY_KEY key
MUI_STARTMENUPAGE_REGISTRY_VALUENAME value_name
The registry key to store the Start Menu folder. The page will use it to remember
the users preference. You should also use for the uninstaller to remove the Start
Menu folders. Don't forget to remove this key during uninstallation.
For the uninstaller, use the MUI_STARTMENU_GETFOLDER macro to get the Start Menu
folder:
!insertmacro MUI_STARTMENU_GETFOLDER page_id $R0
Delete "$SMPROGRAMS\$R0\Your Shortcut.lnk"
Installation page settings
MUI_INSTFILESPAGE_FINISHHEADER_TEXT text
Text to display on the header of the installation page when the installation has
been completed (won't be displayed when using a Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).
MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT text
Subtext to display on the header of the installation page when the installation
has been completed (won't be displayed when using a Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).
MUI_INSTFILESPAGE_ABORTHEADER_TEXT text
Text to display on the header of the installation page when the installat